package jdk8的特性.Lambda表达式;

/**
 * 作者：idea
 * 日期：2018/8/19
 * 描述：通过举例子来说明lambda函数会返回什么类型的参数
 */
public class LambdaFunctionList {

    public static void main(String[] args) {
        Runnable r1=()-> System.out.println("this is ll");
        Runnable r2=new Runnable() {
            @Override
            public void run() {
                System.out.println("this is 22");
            }
        };
        process(r1);
        process(r2);

    }

    public static void process(Runnable runnable){
        runnable.run();
    }


}
